import { request } from '@api/service'

export const fetchListApi = (params) => {
  return request({
    url: '/user/index',
    method: 'get',
    params
  })
}

export const balanceChange = (params, data) => {
  return request({
    url: '/user/change-balance',
    method: 'post',
    params,
    data
  })
}

export const commissionChange = (params, data) => {
  return request({
    url: '/user/set-commission',
    method: 'post',
    params,
    data
  })
}
